
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
int main()
{
    DWORD dHeapNumber;
    PHANDLE handles;
    DWORD valid;
    handles = malloc(sizeof(handles)*16);
    memset(handles,0, sizeof(PHANDLE)*16);
    dHeapNumber = GetProcessHeaps(16,handles);
    HeapCreate()
    for (int i = 0; i < dHeapNumber; ++i) {
        valid = HeapValidate(handles[i],HEAP_NO_SERIALIZE,NULL);
        printf("No.%d %lu\n",i,valid);
    }
    printf("Star\n");
    printf("End\n");
}